/**
 * 品牌 api 封装
 *
 * @Author:    sweepingMonk
 * @Date:      2023-09-04 15:14:45
 * @Copyright  扫地僧
 */
import {getRequest, postRequest} from '/@/lib/axios';

export const brandApi = {

    /**
     * 分页查询  @author  sweepingMonk
     */
    queryPage: (param) => {
        return postRequest('/brand/queryPage', param);
    },

    /**
     * 增加  @author  sweepingMonk
     */
    add: (param) => {
        return postRequest('/brand/add', param);
    },

    /**
     * 修改  @author  sweepingMonk
     */
    update: (param) => {
        return postRequest('/brand/update', param);
    },


    /**
     * 删除  @author  sweepingMonk
     */
    delete: (id) => {
        return getRequest(`/brand/delete/${id}`);
    },

    /**
     * 批量删除  @author  sweepingMonk
     */
    batchDelete: (idList) => {
        return postRequest('/brand/batchDelete', idList);
    },

};
